//
//  ICMAppointmentBasicInfoView.h
//  ICrEAM
//
//  Created by rainimute on 16/11/2.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMTitleTextFeildView.h"
#import "ICMTitleTextView.h"
#import "ICMSelecteStepInTimeView.h"
#import "ICMCarModel.h"
#import "ICMPersonerModel.h"
@class ICMAppointmentBasicInfoModel;
@class ICMAppointmentOtherInfoModel;


@protocol ICMAppointmentBasicInfoViewDelegate <NSObject>
@optional
- (void)clickQRCodeBtn;

- (void)clickMonitorBtn;

- (void)clickRepairTypeBtn;

- (void)clickCarInfoBtn;

- (void)clickCarOwnerBtn;

- (void)licenseDidEndEdit:(ICMTitleTextFeildView *)sender type:(NSString *)type;

- (void)licenseDidEndEdit:(ICMTitleTextFeildView *)sender;

- (void)cancelSaveCanAction:(BOOL)canAction;

@end

@interface ICMAppointmentBasicInfoView : UIView

@property (nonatomic, weak) id<ICMAppointmentBasicInfoViewDelegate,ICMSelecteStepInTimeViewDelegate>delegate;

@property (nonatomic, copy) NSString *BOOKING_ORDER_NO;
@property (nonatomic, strong) ICMCarModel *carModel;
@property (nonatomic, strong) ICMPersonerModel *personModel;

//是否更改了VIN
@property (nonatomic, assign) BOOL haveChangeVIN;

@property (nonatomic, strong) ICMTitleTextFeildView *vinNumberView;           //VIN码
@property (nonatomic, strong) ICMTitleTextFeildView *selectAreaView;          //车牌前缀
@property (nonatomic, strong) ICMTitleTextFeildView *plateNumberView;         //车牌号
@property (nonatomic, strong) ICMTitleTextFeildView *ownerNameView;           //车主姓名


@property (nonatomic, strong) ICMTitleTextFeildView *invoiceDateView;         //购车发票日期
@property (nonatomic, strong) ICMTitleTextFeildView *currentMileageView;      //当前行驶里程
@property (nonatomic, strong) ICMTitleTextFeildView *ownerPhoneNumberView;    //车主手机
@property (nonatomic, strong) ICMTitleTextFeildView *ownerTypeView;           //车主性质


@property (nonatomic, strong) ICMTitleTextFeildView *carTypeView;             //车型
@property (nonatomic, strong) ICMTitleTextFeildView *customerNameView;        //预约人姓名
@property (nonatomic, strong) ICMTitleTextFeildView *customerPhoneNumberView; //预约人手机


@property (nonatomic, strong) ICMTitleTextFeildView *appointmentTypeView;     //预约业务类型
@property (nonatomic, strong) ICMTitleTextFeildView *appointmentSubTypeView;  //预约业务子类型
@property (nonatomic, strong) ICMTitleTextFeildView *pickUpAddressView;       //接车地址


@property (nonatomic, strong) ICMTitleTextFeildView *stepInTimeView;          //预约进站时间
@property (nonatomic, strong) ICMTitleTextFeildView *serviceAdvisorView;      //预约服务顾问
@property (nonatomic, strong) ICMTitleTextFeildView *sendCarAddressView;      //送车地址


@property (nonatomic, strong) ICMTitleTextFeildView *stationView;             //预约工位
//@property (nonatomic, copy) NSString *staionCode;
@property (nonatomic, strong) ICMTitleTextFeildView *workTimeView;            //预计施工时间
@property (nonatomic, strong) ICMTitleTextFeildView *tipsView;                //备注
@property (nonatomic, strong) NSString *SERVICE_ADVISOR;

@property (nonatomic, copy) NSString *RECEPTION_TIME;//预计接待时长
@property (nonatomic, copy) NSString *EST_STATION_TIME;//预计上工位时间
@property (nonatomic, copy) NSString *EST_REPAIR_TIME;//预计施工时间
@property (nonatomic, copy) NSString *stationCode;

//活动获取需要的VIN码
@property (nonatomic, copy) NSString *VIN_FOR_ACTIVITY;

@property (nonatomic, assign) BOOL isOnline;//VW是否有在线资源
@property (nonatomic, assign) BOOL skEditType;
@property (nonatomic, assign) BOOL isEditType;//SK是否编辑模式

/*弹出各种View*/
@property (nonatomic, strong) ICMSelecteStepInTimeView *selecteStepInTimeView;

- (void)setupAppointmentBasicInfoViewWithBasicModel:(ICMAppointmentBasicInfoModel*)basicModel andOtherModel:(ICMAppointmentOtherInfoModel*)otherModel;

+ (instancetype)createICMAppointmentBasicInfoViewWithFrame:(CGRect)frame;
-(void)cleanAllTextFieldText;//清空数据
@end
